$(function () {
    if (get_cookie("key")) {
        $.ajax({
            url: ip + "index.php?s=admincms/login/isadmin",
            type: "post",
            data: {
                "user": get_cookie("user"),
                "key": get_cookie("key")
            },
            success: function (_res) {
                res = JSON.parse(_res);
                if (res.resStatus === 0) {

                }else{
                    location.href=key_address;
                }
            }
        });
    }else{
        location.href=key_address;
    }
});